//
//  iscntrl.c
//  小马测试函数
//
//  Created by 马鹏朔 on 2022/10/25.
//

#include<stdio.h>
#include<string.h>
#include<ctype.h>
#include<stdlib.h>


int main ()
{
   int i = 0, j = 0;
   char str1[] = "all \a about \t programming";
   char str2[] = "Runoob \n tutorials";
  
   /* 输出字符串直到控制字符 \a */
   while( !iscntrl(str1[i]) )
   {
      putchar(str1[i]);
      i++;
   }
  
   /* 输出字符串直到控制字符 \n */
   while( !iscntrl(str2[j]) )
   {
      putchar(str2[j]);
      j++;
   }
    int k=0;
        char str[]="first line \n second line \n";
        while (!iscntrl(str[k]))
        {
            putchar (str[k]);
            k++;
        }
  
   
   return 0;
}


